package com.yzjs.base;


import com.yzjs.enumeration.BestPayResultEnum;

public class BestPayException extends RuntimeException {
    private Integer code;

    public BestPayException(BestPayResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }

    public Integer getCode() {
        return this.code;
    }
}
